CAPTCHA\Plugin\Tests\CoreTest S

Total Complexity 12
Dependencies 2
Dependents 0
Total lines 121
Lines of code 79
Logical lines of code 43
Comment lines 2
Methods 12
Properties 1

Methods 12

Method Rating Maintainability Complexity Lines of code
setUp()
S
68 1 7
tearDown()
S
76 1 4
test_get_real_ip_with_x_forwarded_for_private_ip()
S
75 1 4
test_get_real_ip_without_x_forwarded_for()
S
80 1 3
test_anonymize_ipv4()
S
66 1 8
test_anonymize_ipv6()
S
66 1 8
test_anonymize_invalid_ip()
S
80 1 3
test_validate_success()
S
65 1 9
test_validate_failure()
S
65 1 9
test_validate_with_wp_error()
S
70 1 6
test_validate_with_empty_response()
S
65 1 9
test_validate_with_invalid_json()
S
65 1 9